package com.service.impl;

import com.entity.Classroom;
import com.mapper.ClassRoomMapper;
import com.service.IClassRoomService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author zhangfoshou
 * @Since 2016/1/7
 */
@Service
public class ClassRoomServiceImpl implements IClassRoomService {
    @Resource
    private ClassRoomMapper classRoomMapper;


    public List<Classroom> selectAll() {
        return classRoomMapper.selectAll();
    }

    public void update(Classroom classroom) {
        classRoomMapper.update(classroom);
    }

    public Classroom selectById(Integer id) {
        return classRoomMapper.selectById(id);
    }
}
